#pragma once
#include "WPModel.h"

class CStudyRecordWnd : public WindowImplBase
{
public:
    CStudyRecordWnd(void);
    CStudyRecordWnd(CWPModel* pWPModel);
    ~CStudyRecordWnd(void);

    LPCTSTR GetWindowClassName() const;	
    virtual void OnFinalMessage(HWND hWnd);
    virtual void Notify(TNotifyUI& msg);
    virtual void InitWindow();
    virtual void OnClick(TNotifyUI& msg);
    virtual LRESULT ResponseDefaultKeyEvent(WPARAM wParam);
    virtual UILIB_RESOURCETYPE GetResourceType() const;
    virtual CDuiString GetSkinFile();
    virtual CDuiString GetSkinFolder();
    virtual CControlUI* CreateControl(LPCTSTR pstrClass);
    virtual LRESULT HandleMessage(UINT uMsg, WPARAM wParam, LPARAM lParam);
    virtual LRESULT OnSysCommand(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
    virtual LRESULT HandleCustomMessage(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);

public:
    void ShowWordsOnePage(int nPage, int nCount = 10);

private:
    CButtonUI* m_pCloseBtn;
    CButtonUI* m_pHelpBtn;
    CButtonUI* m_pMinBtn;

    CWPModel* m_pWPModel;

    int m_nCurrentPageNo;
    int m_nTotalPages;
};

